package com.dkt.android.utils

/**
 * project com.mcworle.ecentm.customer.utils
 * Created by Bill on 2018/1/17.
 * email: tangbakzi@daotangbill.uu.me
 *
 * @author Bill
 * @version 1.0
 * @description
 */

inline fun <T> T.equalToFun(other: Any?, block: (T) -> Unit) {
    if (other != null && other == this) {
        block(this)
    }
}